define(
["osm/OsmInfoSyst"],
function(OsmInfoSyst){
    return {
        getName: function() {
            return "COMP - OSM INFO"
        },

        create: function() {
            var _system;
            var _content;
            var _id;
            var _CLASS = this;

            var _self = {
                getClass: function() { return _CLASS; },

                init: function(systemMgr, params) {
                    //Fill the content
                    _id = params.id;
                    _content = params;

                    //Register myself to the system
                    _system = systemMgr.getSystem(OsmInfoSyst);
                    _system.add(_self);

                    //return me
                    return _self;
                },

                getContent: function() {
                    return _content;
                },

                getId: function() {
                    return _id;
                },

                destroy: function() {
                    //Unregister myself from the system
                    _system.rem(_self);

                    //Clear variables
                    _system = null;
                    _content = null;
                }
            }

            return _self;
        }
    };
});